package org.halk.controller;

import org.halk.entity.StudentTest;
import org.halk.service.StudentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class StudentController {

    @Resource
    private StudentService studentService;

    @GetMapping("/test")
    public String test() {
       StudentTest studentTest = studentService.queryById(1);
        return studentTest.toString();
    }
}
